<template>
    <div class="box">
        <h3>测试局部组件注册的部分</h3>
        <img :src="`/src/assets/images/${imgStr}.jpg`" @click="imgStr = 8" width="100%" />

    </div>
</template>

<script lang="ts">
export default {
    name: 'diyDemo26'
}
</script>

<script setup lang='ts'>
import { ref } from 'vue';

const imgStr = ref(5)
</script>

<style lang="scss">
.box {
    margin: 10px;
    padding: 10px;
    border: 2px solid skyblue;
}
</style>